﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="ankietyzacja._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        aktualności</h2>
        <br />
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
        AutoGenerateColumns="False" CellPadding="4" DataKeyNames="AKTUALNOSCI_ID" 
        DataSourceID="AktualnosciSelectSqlDataSource" ForeColor="#333333" 
        GridLines="None" 
        PageSize="5" ShowHeader="False" Width="731px">
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        <Columns>
            <asp:TemplateField HeaderText="TRESC" SortExpression="TRESC">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("DATAUTWORZENIA") %>'></asp:TextBox>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("TRESC") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label2" runat="server" Text='<%# Bind("DATAUTWORZENIA") %>' CssClass=bold></asp:Label>
                    <br />
                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("TRESC") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <EditRowStyle BackColor="#999999" />
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#E9E7E2" />
        <SortedAscendingHeaderStyle BackColor="#506C8C" />
        <SortedDescendingCellStyle BackColor="#FFFDF8" />
        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
    </asp:GridView>
    <asp:SqlDataSource ID="AktualnosciSelectSqlDataSource" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ankietyzacjaConnectionString %>" 
        SelectCommand="SELECT * FROM [AKTUALNOSCI] ORDER BY [DATAUTWORZENIA] DESC">
    </asp:SqlDataSource>
    </asp:Content>
